﻿<%@ Page Language="C#" MasterPageFile="~/Basic.Master" AutoEventWireup="true" Inherits="DD_Extensions.Login" CodeBehind="Login.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Login 
        ID="Login1" 
        runat="server" 
        EnableViewState="false" 
        DisplayRememberMe="true" 
        RenderOuterTable="false" 
        OnLoginError="LoginUser_LoginError" 
        DestinationPageUrl="~/Default.aspx">
        <LayoutTemplate>
            <div class="MainLogin">
                <div class="accountInfo">
                    <fieldset id="Accounts" class="login DD">
                        <legend>Login</legend>
                        <p>
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                            <%-- AutoComplete="off"  turns off auto complete history--%>
                            <asp:TextBox ID="UserName" runat="server" CssClass="DDTextBox DDRequired" Width="180"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                CssClass="DDValidator" ErrorMessage="User Name is required." ToolTip="User Name is required."
                               >*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                            <asp:TextBox ID="Password" runat="server" CssClass="DDTextBox DDRequired" TextMode="Password" Width="180"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                CssClass="DDValidator" ErrorMessage="Password is required." ToolTip="Password is required.">*</asp:RequiredFieldValidator>
                        </p>
                        <p>
                            <asp:CheckBox ID="RememberMe" runat="server" />
                            <asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="RememberMeLabel">Keep me logged in</asp:Label>
                        </p>
                        <div class="ValidationSummary">
                            <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="DDValidator" />&nbsp;
                        </div>
                        <div class="submitButton">
                            <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" CssClass="DDControl" /><br /><br />
                        </div>
                    </fieldset>
                </div>
            </div>
        </LayoutTemplate>
    </asp:Login>
</asp:Content>
